const Home = () => import('views/home/Home');
const Categroy = () => import('views/categroy/Categroy');
const Cart = () => import('views/cart/Cart');
const Profile = () => import('views/profile/Profile');
const BannerView = () => import('views/banner_view/BannerView');
const GoodDetail = () => import('views/good_detail/GoodDetail');
const Login = () => import('views/login/Login');
const Register = () => import('views/register/Register');
const Comment = () => import('views/good_comment/GoodComment');
const Tab = () => import('views/good_tab/GoodTab');
const Search = () => import('views/search/Search');
const routes = [
  {
    path: '',
    redirect:'/home'
  },
  {
    path: '/home',
    component: Home
  },
  {
    path: '/categroy',
    component: Categroy
  },
  {
    path: '/cart',
    component: Cart
  },
  {
    path: '/profile',
    component: Profile
  },
  {
    path: '/banner/:banner_id',
    component: BannerView
  },
  {
    path: '/good/:good_id',
    component:GoodDetail
  },
  {
    path: '/login',
    component:Login
  },
  {
    path: '/register',
    component:Register
  },
  {
    path: '/comment/:id',
    component:Comment
  },
  {
    path:'/tab',
    component: Tab
  },
  {
    path: '/search',
    component:Search
  }
]
export default routes;